/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;
using DGZImp.SysEntity;

namespace DGZImp.ApsProject.DomainModels
{
    [Entity(TableCnName = "工厂行事历",TableName = "Aps_PlantCalendar",DBServer = "ServiceDbContext")]
    public partial class Aps_PlantCalendar:ServiceEntity
    {
        /// <summary>
       ///
       /// </summary>
       [SugarColumn(IsPrimaryKey = true)]
       [Key]
       [Display(Name ="PlantCalendarId")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long PlantCalendarId { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="WorkDate")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public DateTime WorkDate { get; set; }

       /// <summary>
       ///日期类型
       /// </summary>
       [Display(Name ="日期类型")]
       [Column(TypeName="nvarchar(max)")]
       [Editable(true)]
       public string DateType { get; set; }

       /// <summary>
       ///班表ID
       /// </summary>
       [Display(Name ="班表ID")]
       [Column(TypeName="bigint")]
       [Editable(true)]
       public long? ShiftId { get; set; }

       /// <summary>
       ///班次
       /// </summary>
       [Display(Name ="班次")]
       [Column(TypeName="int")]
       [Editable(true)]
       [Required(AllowEmptyStrings=false)]
       public int ShiftType { get; set; }

       /// <summary>
       ///时数
       /// </summary>
       [Display(Name ="时数")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? Hours { get; set; }

       /// <summary>
       ///减损比
       /// </summary>
       [Display(Name ="减损比")]
       [Column(TypeName="int")]
       [Editable(true)]
       public int? LostRate { get; set; }

       /// <summary>
       ///是否有效
       /// </summary>
       [Display(Name ="是否有效")]
       [Column(TypeName="int")]
       public int? IsValid { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="CreateId")]
       [Column(TypeName="bigint")]
       public long? CreateId { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? CreateTime { get; set; }

       /// <summary>
       ///
       /// </summary>
       [Display(Name ="ModifyId")]
       [Column(TypeName="bigint")]
       public long? ModifyId { get; set; }

       /// <summary>
       ///修改人
       /// </summary>
       [Display(Name ="修改人")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       public string Modifier { get; set; }

       /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       public DateTime? ModifyTime { get; set; }

       /// <summary>
       ///创建人
       /// </summary>
       [Display(Name ="创建人")]
       [MaxLength(100)]
       [Column(TypeName="nvarchar(100)")]
       public string Creator { get; set; }

       
    }
}